package com.buaat.platform.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.buaat.platform.repository.user.User;
import com.buaat.platform.repository.user.UserRepository;
import com.buaat.platform.service.IUserManager;

@Service
@Transactional
public class UserManagerImpl implements IUserManager {

	@Autowired
	private UserRepository userRepository;

	@Override
	public User saveUser(String username, String loginid, String password) {
		return userRepository.save(new User(username, loginid, password));
	}

}
